package com.hxf.dao.order;

import java.util.List;

import com.hxf.dao.BaseDao;
import com.hxf.dto.MealOrderDetailDto;
import com.hxf.dto.MealOrderDto;
import com.hxf.dto.ReturnData;
import com.hxf.exception.DaoLevelException;

/**
 * 
 * @author Administrator
 *
 */
public interface OrderDao extends BaseDao { 
	/**
	 * 查询订单信息 分页
	 * @param orderDto
	 * @param targetPage
	 * @param pageSize
	 * @return
	 * @throws DaoLevelException
	 */
	public ReturnData<MealOrderDto> findMealOrder(MealOrderDto orderDto, int targetPage, int pageSize)throws DaoLevelException;
	
	/**
	 * 查询订单详细信息 分页
	 * @param orderDto
	 * @param targetPage
	 * @param pageSize
	 * @return
	 * @throws DaoLevelException
	 */
	public ReturnData<MealOrderDetailDto> findMealOrderDetail(MealOrderDetailDto orderDetailDto, int targetPage, int pageSize)throws DaoLevelException;
	
	/**
	 * 查询订单详细信息
	 * @param orderDto
	 * @param targetPage
	 * @param pageSize
	 * @return
	 * @throws DaoLevelException
	 */
	public List<MealOrderDetailDto> findMealOrderDetail(MealOrderDetailDto orderDetailDto)throws DaoLevelException;
	
	/**
	 * 根据订单编号 删除订单详细信息
	 * @param orderId
	 * @throws DaoLevelException
	 */
	public int deteleMealOrderDetailByOrderId(String orderId) throws DaoLevelException;

	/**
	 * 删除 订单表数据
	 * @param orderId
	 * @return
	 * @throws DaoLevelException
	 */
	public int deleteMealOrderBy(String orderId) throws DaoLevelException;
}
